package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:34
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceProductDatabaseModelRelateBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceProductDatabaseModelRelate workspaceProductDatabaseModelRelate;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceProductDatabaseModelRelate);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.Id);
		
																																		
				
																								
				
																
				
																
		mappedDaoFields.put("workspaceProductDatabaseRelateId",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.WorkspaceProductDatabaseRelateId);
		
																														
				
																								
				
																
				
																				
		mappedDaoFields.put("modelPcakageId",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.ModelPcakageId);
		
																										
				
																								
				
																
				
																								
		mappedDaoFields.put("lastUpdateTime",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.LastUpdateTime);
		
																						
				
																								
				
																
				
																												
		mappedDaoFields.put("submitterId",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.SubmitterId);
		
																		
				
																								
				
																
				
																																
		mappedDaoFields.put("submitterName",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.SubmitterName);
		
														
				
																								
				
																
				
																																				
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.Status);
		
										
				
																								
				
																
				
																																								
		mappedDaoFields.put("remarks",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.Remarks);
		
						
				
																								
				
																
				
																																						
				
										
		mappedDaoFields.put("packageName",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.PackageName);
																
				
																
				
																																						
				
																		
		mappedDaoFields.put("domainId",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.DomainId);
								
				
																
				
																																						
				
																								
				
										
		mappedDaoFields.put("domainName",com.ourteam.workspace.dao.IWorkspaceProductDatabaseModelRelateDAO.DomainName);
								
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceProductDatabaseModelRelateBean() {
		super();
	    		
		this.workspaceProductDatabaseModelRelate = new com.ourteam.workspace.dao.WorkspaceProductDatabaseModelRelate();
                
	}
	
		
	public WorkspaceProductDatabaseModelRelateBean(com.ourteam.workspace.dao.WorkspaceProductDatabaseModelRelate workspaceProductDatabaseModelRelate) {
		super();
	
		this.workspaceProductDatabaseModelRelate = workspaceProductDatabaseModelRelate;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceProductDatabaseModelRelate convertToWorkspaceProductDatabaseModelRelate(){
		return this.workspaceProductDatabaseModelRelate;
	}
	
	public com.ourteam.workspace.dao.WorkspaceProductDatabaseModelRelate convertTo(){
		return this.workspaceProductDatabaseModelRelate;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceProductDatabaseModelRelate.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceProductDatabaseModelRelate.setId(id);
	}
		
																	
			
													
			
									
		
		
					
			
		
	/**
	 * Get workspaceProductDatabaseRelateId
	 * 
	 * @return long
	 */
	public long getWorkspaceProductDatabaseRelateId(){
		return (long) this.workspaceProductDatabaseModelRelate.getWorkspaceProductDatabaseRelateId();
	}
	
	/**
	 * Set workspaceProductDatabaseRelateId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceProductDatabaseRelateId(long workspaceProductDatabaseRelateId){
		
		this.workspaceProductDatabaseModelRelate.setWorkspaceProductDatabaseRelateId(workspaceProductDatabaseRelateId);
	}
		
															
			
													
			
									
		
		
							
			
		
	/**
	 * Get modelPcakageId
	 * 
	 * @return long
	 */
	public long getModelPcakageId(){
		return (long) this.workspaceProductDatabaseModelRelate.getModelPcakageId();
	}
	
	/**
	 * Set modelPcakageId
	 * 
	 * @parameter long
	 */
	public void setModelPcakageId(long modelPcakageId){
		
		this.workspaceProductDatabaseModelRelate.setModelPcakageId(modelPcakageId);
	}
		
													
			
													
			
									
		
		
									
			
		
	/**
	 * Get lastUpdateTime
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getLastUpdateTime(){
		return (java.util.Date) this.workspaceProductDatabaseModelRelate.getLastUpdateTime();
	}
	
	/**
	 * Set lastUpdateTime
	 * 
	 * @parameter java.util.Date
	 */
	public void setLastUpdateTime(java.util.Date lastUpdateTime){
		
		this.workspaceProductDatabaseModelRelate.setLastUpdateTime(lastUpdateTime);
	}
		
											
			
													
			
									
		
		
											
			
		
	/**
	 * Get submitterId
	 * 
	 * @return long
	 */
	public long getSubmitterId(){
		return (long) this.workspaceProductDatabaseModelRelate.getSubmitterId();
	}
	
	/**
	 * Set submitterId
	 * 
	 * @parameter long
	 */
	public void setSubmitterId(long submitterId){
		
		this.workspaceProductDatabaseModelRelate.setSubmitterId(submitterId);
	}
		
									
			
													
			
									
		
		
													
			
		
	/**
	 * Get submitterName
	 * 
	 * @return String
	 */
	public String getSubmitterName(){
		return (String) this.workspaceProductDatabaseModelRelate.getSubmitterName();
	}
	
	/**
	 * Set submitterName
	 * 
	 * @parameter String
	 */
	public void setSubmitterName(String submitterName){
		
		this.workspaceProductDatabaseModelRelate.setSubmitterName(submitterName);
	}
		
							
			
													
			
									
		
		
															
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceProductDatabaseModelRelate.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceProductDatabaseModelRelate.setStatus(status);
	}
		
					
			
													
			
									
		
		
																	
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.workspaceProductDatabaseModelRelate.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.workspaceProductDatabaseModelRelate.setRemarks(remarks);
	}
		
			
			
													
			
									
		
		
																		
			
					
			
		
	/**
	 * Get packageName
	 * 
	 * @return String
	 */
	public String getPackageName(){
		
		return (String) this.workspaceProductDatabaseModelRelate.getPackageName();
			
	}
	
									
			
									
		
		
																		
			
									
			
		
	/**
	 * Get domainId
	 * 
	 * @return long
	 */
	public long getDomainId(){
		
		return (long) this.workspaceProductDatabaseModelRelate.getDomainId();
			
	}
	
					
			
									
		
		
																		
			
													
			
					
			
		
	/**
	 * Get domainName
	 * 
	 * @return String
	 */
	public String getDomainName(){
		
		return (String) this.workspaceProductDatabaseModelRelate.getDomainName();
			
	}
	
					
		
			
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceProductDatabaseModelRelateBean) == false) {
            return false;
        } // end if

        WorkspaceProductDatabaseModelRelateBean other = (WorkspaceProductDatabaseModelRelateBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceProductDatabaseModelRelate tempWorkspaceProductDatabaseModelRelate = other.convertToWorkspaceProductDatabaseModelRelate();
        
        if(tempWorkspaceProductDatabaseModelRelate == null || this.workspaceProductDatabaseModelRelate == null){
        	isEqual = false;
        }
        else if(tempWorkspaceProductDatabaseModelRelate == this.workspaceProductDatabaseModelRelate || tempWorkspaceProductDatabaseModelRelate.equals(this.workspaceProductDatabaseModelRelate) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceProductDatabaseModelRelateBean[] toArray(com.ourteam.workspace.dao.WorkspaceProductDatabaseModelRelate[] aWorkspaceProductDatabaseModelRelates){
		
		return toArray(aWorkspaceProductDatabaseModelRelates,null);
	}
	
	public static WorkspaceProductDatabaseModelRelateBean[] toArray(com.ourteam.workspace.dao.WorkspaceProductDatabaseModelRelate[] aWorkspaceProductDatabaseModelRelates , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceProductDatabaseModelRelates)){
		 	return new WorkspaceProductDatabaseModelRelateBean[0];
		 }
		 
		 int length = aWorkspaceProductDatabaseModelRelates.length;
		 
		 WorkspaceProductDatabaseModelRelateBean[] beans = new WorkspaceProductDatabaseModelRelateBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceProductDatabaseModelRelateBean(aWorkspaceProductDatabaseModelRelates[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceProductDatabaseModelRelates[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}